<!--
 * @Author: 杨伟韦
 * @Date: 2025-05-25 15:30:21
 * @LastEditors: 杨伟韦
-->
<template>
  <div class="user-container">
    <div class="user-search">
      <Icon class="search-icon" type="ios-search" size="24" />
      <input placeholder="搜索相册名称" />
    </div>
    <div class="user-info">
      <div class="user-add"><Icon type="md-add" size="24" /></div>
      <div class="user-name">杨</div>
      <Icon type="ios-arrow-down" size="24" />
    </div>
  </div>
</template>

<script name="menus" setup></script>
<style lang="less" scoped>
.user-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.user-info {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  transition: all 0.3s ease-in-out;
  border-radius: 6px;

  &:hover {
    background-color: #f1f1f1;
  }

  .user-name {
    font-size: 16px;
    color: var(--color-text-primary);
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 20px;
    background-color: var(--third-color);
    cursor: pointer;
    margin-right: 6px;
  }

  .user-add {
    font-size: 16px;
    color: var(--third-color);
    width: 35px;
    height: 35px;
    border-radius: 20px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    cursor: pointer;
  }
}

.user-search {
  display: flex;
  align-items: center;
  width: 300px;
  height: 40px;
  border: 1px solid var(--third-color);
  border-radius: 8px;
  padding: 0 8px;

  .search-icon {
    margin-right: 6px;
    color: var(--third-color);
  }

  input {
    outline: none;
    border: none;
    flex: 1;
  }
}
.ta-r {
  text-align: right;
}
</style>
